package com.jv.spring.init;

import org.springframework.beans.BeansException;
import org.springframework.beans.factory.BeanFactory;
import org.springframework.beans.factory.BeanFactoryAware;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.context.annotation.Configuration;

@ComponentScan("com.jv.spring.init")
@Configuration
public class SpringAppConfig implements BeanFactoryAware {
	private BeanFactory beanFactory;
/*	@Bean("employee")
	public Employee emp_aa(){
		return new Employee("Messi",33);
	}*/

	@Override
	public void setBeanFactory(BeanFactory beanFactory) throws BeansException {
		this.beanFactory = beanFactory;
	}
}
